#!/bin/bash
function s1_hello(){
	echo "hello, world!"
}
function s2_tell_who_i_am(){
	whoami
}
function s3_which_distro_do_i_use(){
	. /etc/os-release
	echo "NAME=$NAME"
}
function s4_view_my_cpu_arch(){
	uname -m
}
function s5_show_first_scsi_disk_size(){
	local size_bytes=$(lsblk -b | grep "disk" | grep "^sda" | awk '{print $4}')
	local size_gb=$(echo "scale=0; $size_bytes / (1024*1024*1024)" | bc)
	echo $size_gb
}
function s6_main_memory_size_in_megabyter(){
	free -m | grep "Men:" |awk '{print $2}'
}

